package com.jprocms.module.cms.api;

import com.jpro.framework.common.pojo.CommonResult;
import com.jprocms.module.cms.api.dto.GlobalConfigRespVO;
import com.jprocms.module.cms.enums.ApiConstants;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import javax.annotation.security.PermitAll;

@FeignClient(name = ApiConstants.NAME)
@Tag(name = "RPC 服务 - 系统配置")
public interface GlobalConfigApi {

    @PermitAll
    @GetMapping(value = ApiConstants.PREFIX + "/global-config/get")
    CommonResult<GlobalConfigRespVO> getGlobalConfig();


}
